//
//  WCXMPPTool.h
//  WeChat
//
//  Created by lin on 15/7/21.
//  Copyright (c) 2015年 lin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Singleton.h"
#import "XMPPFramework.h"

@interface WCXMPPTool : NSObject
singleton_interface(WCXMPPTool);

typedef enum {
    XMPPResultTypeLoginSuccess,
    XMPPResultTypeLoginFailure,
    XMPPResultTypeNetErr,
    XMPPResultTypeRegisterFailure,
    XMPPResultTypeRegisterSuccess
}XMPPResultType;

@property (nonatomic,assign,getter=isRegisterOperation) BOOL registerOperation;
typedef void (^XMPPResultBlock)(XMPPResultType type);
//用户登录
-(void)xmppUserLogin:(XMPPResultBlock)resultBlock;
//用户注销
-(void)xmppUserLogout;
//用户注册
-(void)xmppUserRegister:(XMPPResultBlock)resultBlock;
@end
